<!DOCTYPE html>
<html lang="zh-CN"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>

<meta charset="UTF-8">

</head>

<body>

    后台主页面

        <ul>
            <shiro:hasRole name="OPA">
                <li><a href="opa">1.操作A</a></li>
            </shiro:hasRole>

            <shiro:hasRole name="OPB">
                <li><a href="opb">2.操作B</a></li>
            </shiro:hasRole>
        </ul>



</body>

</html>